-- GENERATED SPELL FOR [Rynthariel the Keymaster] --


function spell0_8518(pUnit, Event) --@Slowing Poison,n/a--
pUnit:FullCastSpellOnTarget(7992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8518', 26000, 1)
end

function spell1_8518(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8518', 500, 1)
end

function Sorts_8518(pUnit, Event)
local choix_sorts_8518 = math.random(0, 1)
if choix_sorts_8518 == 0 then
pUnit:RegisterEvent('spell0_8518', 1, 1)
end
if choix_sorts_8518 == 1 then
pUnit:RegisterEvent('spell1_8518', 1, 1)
end
end

function mob8518_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8518', math.random(1500, 3000), 1)
end

function mob8518_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8518_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8518_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8518, 1, 'mob8518_Action')
RegisterUnitEvent(8518, 2, 'mob8518_Leave')
RegisterUnitEvent(8518, 3, 'mob8518_Kill')
RegisterUnitEvent(8518, 4, 'mob8518_Die')
